#include "StdAfx.h"
#include ".\rotationnode.h"

#include <matrix.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include <gl/glut.h>

RotationNode::RotationNode(void)
{
}

RotationNode::~RotationNode(void)
{
}

void RotationNode::Draw()
{
	GLdouble rotMat[16];

	
	rotMat[0]  = 0.0; rotMat[1]  = 0.0; rotMat[2]  = 0.0; rotMat[3]  = 0.0;
	rotMat[4]  = 0.0; rotMat[5]  = 0.0; rotMat[6]  = 0.0; rotMat[7]  = 0.0;
	rotMat[8]  = 0.0; rotMat[9]  = 0.0; rotMat[10] = 0.0; rotMat[11] = 0.0;
	rotMat[12] = 0.0; rotMat[13] = 0.0; rotMat[14] = 0.0; rotMat[15] = 1.0;
	for(int i = 0; i < 3; ++i)
	{
		for(int j = 0; j < 3; ++j)
		{
			rotMat[4*i+j] = m_matRot[i][j];
		}
	}
	glMultMatrixd(rotMat);
	
}
